{% extends "m_base.html" %}

{% block title %}Races{% endblock %}

{% block breadcrumbs %}<a href="/">Home</a>{% endblock %}

{% block content %}
{% if race_list %}
  <ul>
  {% for race in race_list %}
    <li><a href="/races/{{ race.id }}/">{{ race.name }}</a></li>
  {% endfor %}
  </ul>
{% else %}
  <p>No races available.</p>
{% endif %}
{% endblock %}
